﻿using GameEntitySystem;
using TemplatesDatabase;

namespace Game
{
    public class ComponentCoffer : ComponentInventoryBase
    {
        public string password;

        public override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
        {
            base.Load(valuesDictionary, idToEntityMap);
            password = valuesDictionary.GetValue("password", "12345");
        }

        public override void Save(ValuesDictionary valuesDictionary, EntityToIdMap entityToIdMap)
        {
            base.Save(valuesDictionary, entityToIdMap);
            valuesDictionary.SetValue("password", password);
        }
    }
}